#目标选中/清除
execute as @s[tag=!has_target] if function vs:system/game_ctrol/guard_tower/ai/select_target/test/power_can_attack if entity @n[predicate=vs:guard_tower_target,distance=..15] run function vs:system/game_ctrol/guard_tower/ai/select_target/try
execute as @s[tag=has_target] run function vs:system/game_ctrol/guard_tower/ai/select_target/try_clear with entity @s item.components."minecraft:custom_data".guardTowerData

#Attack
execute as @s[tag=signal.Attack] run function vs:system/game_ctrol/guard_tower/ai/attack/attack_by_signal
